<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scayyle=1.0" />
  <title>Document</title>
  <link rel="stylesheet" href="css/index.css" />
  <style>
    #map {
      position: relative;
      height: 100vh;
      width: 100vw;
    }

    .coordinates {
      position: absolute;
      top: 10px;
      left: 10px;
      background: rgba(255, 255, 255, 0.8);
      padding: 5px;
      border-radius: 5px;
      display: none;
    }

    .alert-message {
      position: absolute;
      top: 20px;
      left: 10px;
      background: rgba(135, 206, 250, 0.9);
      padding: 10px;
      border-radius: 5px;
      font-size: 20px;
      font-family: 'Microsoft YaHei', sans-serif;
      display: none;

        border: 1px solid #ccc;
        z-index: 1000;
    }

    .anchorBL {
      display: none;
    }
  </style>
  <!-- 引入百度地图 API -->
  <script type="text/javascript" src="http://api.map.baidu.com/api?v=3.0&ak=Yc5EDDzSBE2vuMIPSC8E0cVl3j3LxyQR"></script>
  <!-- 引入 xlsx 库 -->
  <script src="https://unpkg.com/xlsx/dist/xlsx.full.min.js"></script>
</head>

  <body>
    <header>
      <h1>平陆运河平台数据展示</h1>
      <div class="showTime">当前时间：2020年3月17-0时54分14秒</div>
      <script>
        var t = null;
        t = setTimeout(time, 1000); //開始运行
        function time() {
          clearTimeout(t); //清除定时器
          dt = new Date();
          var y = dt.getFullYear();
          var mt = dt.getMonth() + 1;
          var day = dt.getDate();
          var h = dt.getHours(); //获取时
          var m = dt.getMinutes(); //获取分
          var s = dt.getSeconds(); //获取秒
          document.querySelector(".showTime").innerHTML =
            "当前时间：" +
            y +
            "年" +
            mt +
            "月" +
            day +
            "-" +
            h +
            "时" +
            m +
            "分" +
            s +
            "秒";
          t = setTimeout(time, 1000); //设定定时器，循环运行
        }
      </script>
    </header>
    <section class="mainbox">
      <div class="column">
        <div class="panel bar">
          <div class="chart"></div>
          <div class="panel-footer"></div>
        </div>
        <div class="panel line">
          <div class="chart"></div>
          <div class="panel-footer"></div>
        </div>
        <div class="panel pie">
<!--          <h2>船舶类型饼形图</h2>-->
          <div class="chart"></div>
          <div class="panel-footer"></div>
        </div>
      </div>
      <div class="column">
        <div class="no">
          <div class="no-hd">
            <ul>
              <li>125811</li>
              <li>104563</li>
            </ul>
          </div>
          <div class="no-bd">
            <ul>
              <li>历史船舶数量</li>
              <li>近期船舶数量</li>
            </ul>
          </div>
        </div>
        <div class="map">
          <div id="map"></div>
          <div class="coordinates" id="coordinates">
            <strong>经度:</strong> <span id="lng"></span> <strong>纬度:</strong> <span id="lat"></span>
          </div>
          <div class="alert-message" id="alert-message"></div>
        </div>
      </div>
      <div class="column">
        <div class="panel bar1">
          <div class="chart"></div>
          <div class="panel-footer"></div>
        </div>
        <div class="panel line1">
<!--          <h2>船舶信息折线图</h2>-->
          <div class="chart"></div>
          <div class="panel-footer"></div>
        </div>
        <div class="panel pie1">
<!--          <h2>船舶目的地玫瑰图</h2>-->
          <div class="chart"></div>
          <div class="panel-footer"></div>
        </div>
      </div>
    </section>
    <script src="js/flexible.js"></script>
    <script src="js/jquery.js"></script>
    <script src="js/echarts.min.js"></script>
    <script src="js/index.js"></script>
    <script src="js/china.js"></script>
    <script src="js/myMap.js"></script>
  </body>
</html>
